# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=signon-ui
pkgver=0.17_git20171023
pkgrel=0
_commit="4368bb77d9d1abc2978af514225ba4a42c29a646"
arch="all !ppc64le !s390x !armhf !mips !mips64" # Blocked by qt5-qtwebengine
url="https://gitlab.com/accounts-sso/signon-ui-qt"
pkgdesc="Signond Qt UI"
license="GPL-3.0-only"
makedepends="qt5-qtbase-dev qt5-qtdeclarative-dev qt5-qtwebengine-dev signond-dev libnotify-dev libproxy-dev libaccounts-qt-dev"
source="$pkgname-$_commit.tar.gz::https://gitlab.com/accounts-sso/signon-ui/-/archive/$_commit.tar.gz"
options="!check" # No tests
builddir="$srcdir/$pkgname-$_commit"

prepare() {
	default_prepare

	# Don't install tests
	sed -e "s|src \\\|src|" -e "/tests/d" -i signon-ui.pro
}

build() {
	qmake-qt5 \
		PREFIX=/usr \
		LIBDIR=/usr/lib
	make
}

package() {
	INSTALL_ROOT="$pkgdir" make install
}

sha512sums="a216c748846e6faf9b7d5613624afa22cf8a6bf1373657331183af053df1158cad355d5ae1dc4e31058f67ef596e76f5ef1de0f33b8899dd956555d3c11173aa  signon-ui-4368bb77d9d1abc2978af514225ba4a42c29a646.tar.gz"
